package com.jzr.task.job;

import com.jzr.common.util.DateUtil;
import org.springframework.stereotype.Component;

@Component("SimpleJob")
public class SimpleJob extends BaseJob {
    @Override
    public void process() throws Exception {
        int i = 0;
        while (i <= 10) {
            System.out.println("SimpleJob : " + i + " : " + Thread.currentThread().getName() + " : " + DateUtil.getCurrentDate());
            Thread.sleep(2000);
            i++;
        }
    }
}